package com.zhouxiaoge.io;

import org.apache.commons.io.IOUtils;

import java.io.IOException;
import java.io.InputStream;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-06-22 10:38
 */

public class CommonIOUtils {
    public static void main(String[] args) throws IOException {
        InputStream stream = CommonIOUtils.class.getClassLoader().getResourceAsStream("test.txt");

        System.out.println(IOUtils.toString(stream, "UTF-8"));
    }
}
